package hello;

public class Demo2 {

	public static void main(String[] args) {
		int count = 0;
		for (int i = 0; i <= 100; i++) {
			if ((i % 3 == 0) || (i % 5 == 0) ||( i %7 ==0)) {
				System.out.print(i + " ");
				count++;
				//if (count % 5 == 0) {
				//	System.out.println();
				}
			}
		}
	}


